<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html" charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <title>OpenLayers Basic Single WMS Example</title>
    <script src="../../../jpp/openlayers/openlayers-2.11.min.js"></script>
    <script src="../trunk/Layer/WeEarthquakes.js"></script>
    <link rel="stylesheet" href="../../theme/default/style.css" type="text/css"/>
    <script type="text/javascript">
        OpenLayers.ProxyHost = 'http://fanghuanweiran.com/cgi-bin/proxy.cgi?url=';
        OpenLayers.ImgPath = '../../theme/default/img/';
        var map, layer;
        function init(){
            map = new OpenLayers.Map( 'map', {
                projection: new OpenLayers.Projection("EPSG:900913"),
                displayProjection: new OpenLayers.Projection("EPSG:4326"),
                units: "m",
                maxResolution: 156543.0339,
                maxExtent: new OpenLayers.Bounds(-20037509, -20037508.34, 20037508.34, 20037508.34),
                layers: [
                    new OpenLayers.Layer.OSM()
                ],
                controls: [
                    new OpenLayers.Control.PanZoom(),
                    new OpenLayers.Control.Navigation(),
                    new OpenLayers.Control.LayerSwitcher()
                ]
            });
            layer = new OpenLayers.Layer.WeEarthquakesHourly();
            layer.visibility = false;
            map.addLayer(layer);
            map.setCenter(new OpenLayers.LonLat(0, 0), 2);
            map.addControl(new OpenLayers.Control.LayerSwitcher());
        }
    </script>
  </head>
  <body onload="init()">
    <div id="map" style="height:300px; width: 1000px;"></div>
  </body>
</html>
